
#ifndef __BSP_H__
#define __BSP_H__

#include "rtdevice.h"

/* PA.6 */
#define PIN_SYSTEM_LED				22

/* PC.4 */
#define PIN_NET_LED					24	

/* PC.5 */
#define PIN_FAULT_LED				25

/* PB.4 */
#define PIN_L306_RESET				56		

#define LED_SYS_ON()		rt_pin_write(PIN_SYSTEM_LED, PIN_LOW)
#define LED_SYS_OFF()		rt_pin_write(PIN_SYSTEM_LED, PIN_HIGH)
#define LED_NET_ON()		rt_pin_write(PIN_NET_LED, PIN_LOW)
#define LED_NET_OFF()		rt_pin_write(PIN_NET_LED, PIN_HIGH)
#define LED_FAULT_ON()		rt_pin_write(PIN_FAULT_LED, PIN_LOW)
#define LED_FAULT_OFF()		rt_pin_write(PIN_FAULT_LED, PIN_HIGH)

void bsp_init(void);

void bsp_l306_reset(void);

#endif
